#include "addoperation.h"

AddOperation::AddOperation()
{

}

AddOperation::AddOperation(int num_1,int num_2):Operation(num_1,num_2)  //先调用父类的构造方法
{

}

int AddOperation::getResult()
{
    int result = 0;
    result = this->getNum_1()+this->getNum_2();
    return result;
}

